<template>
  <nm-form-dialog ref="form" v-bind="form" v-on="on" :visible.sync="visible_">
    <el-row>
      <el-col :span="20" :offset="1">
        <el-form-item label="票价方案名称：" prop="fare_scheme_name">
          <el-input v-model="form.model.fare_scheme_name" clearable />
        </el-form-item>
        <el-form-item label="起始日期：" prop="start_date">
          <el-input v-model="form.model.start_date" clearable />
        </el-form-item>
        <el-form-item label="截止日期：" prop="end_date">
          <el-input v-model="form.model.end_date" clearable />
        </el-form-item>
        <el-form-item label="优先级：" prop="priority_level">
          <el-input v-model="form.model.priority_level" clearable />
        </el-form-item>
        <el-form-item label="状态 1、启用，2、禁用：" prop="status">
          <el-input v-model="form.model.status" clearable />
        </el-form-item>
      </el-col>
    </el-row>
  </nm-form-dialog>
</template>
<script>
import { mixins } from 'netmodular-ui'

const { add, edit, update } = $api.dispatch.fare_scheme

export default {
  mixins: [mixins.formSave],
  data() {
    return {
      title: '票价方案',
      actions: { add, edit, update },
      form: {
        model: {
          /** 票价方案名称 */
          fare_scheme_name: '',
          /** 起始日期 */
          start_date: '',
          /** 截止日期 */
          end_date: '',
          /** 优先级 */
          priority_level: '',
          /** 状态 1、启用，2、禁用 */
          status: ''
        },
        rules: {}
      }
    }
  }
}
</script>
